###############################################
# === xenomorph_casus_belli_expanded.txt ===
###############################################
###############################################
# Xenomorph Casus Belli Expanded
# Place in: common/casus_belli/xenomorph_casus_belli_expanded.txt
###############################################

cb_xenomorph_harvest_broodstock = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = { is_xenomorph_empire = yes }
	is_valid = {
		has_total_war_cb = no
		from = { is_country_type = default }
	}
}

cb_xenomorph_infestation_war = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = { is_xenomorph_empire = yes }
	is_valid = {
		has_total_war_cb = no
		from = { is_country_type = default }
	}
}

cb_xenomorph_claim_the_hive = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = { is_xenomorph_empire = yes }
	is_valid = {
		has_total_war_cb = no
		from = { is_country_type = default }
	}
}

cb_xenomorph_royal_supremacy = {
	show_in_diplomacy = yes
	show_notification = yes
	potential = {
		OR = {
			has_origin = origin_xenomorph_queen_mother
			has_origin = origin_xenomorph_prime
		}
	}
	is_valid = {
		has_total_war_cb = no
		from = { is_country_type = default }
	}
}

###############################################
# === xenomorph_lustful_void_compat_casus_belli.txt ===
###############################################
# Xenomorph + Lustful Void Compatibility Casus Belli
# Place in: common/casus_belli/xenomorph_lustful_void_compat_casus_belli.txt

cb_xeno_breeding_frenzy = {
	show_in_diplomacy = no
	show_notification = no
	potential = {
		OR = {
			has_valid_civic = civic_xenomorph_matriarchs_hunger
			has_valid_civic = civic_xenomorph_patriarchs_dominion
		}
	}
	is_valid = {
		has_total_war_cb = no
		NOT = { is_overlord_to = FROM }
		OR = {
			is_subject = no
			overlord = { NOT = { is_same_value = from } }
		}
	}
}
